import { http } from "@/utils/http";
import { baseUrlApi } from "@/config"

// type Result = {
//   success: 200;
//   data?: {
//     /** 列表数据 */
//     list: Array<any>;
//   };
// };

/** 卡片列表 */
export const getCharge = (params?: object) => {
  return http.request("get", baseUrlApi("/charge") , { params });
};

export const addCharge = (data?: object) => {
  return http.request("put", baseUrlApi("/charge") , { data });
};

export const setCharge = (data?: object) => {
  return http.request("post", baseUrlApi("/charge") , { data });
};

export const deleteCharge = (params?: object) => {
  return http.request("delete", baseUrlApi("/charge") , { params });
};
